load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//rs:system-tests-pkg"])

rust_library(
    name = "rosetta_test_lib",
    testonly = True,
    srcs = glob(["*.rs"]),
    crate_root = "mod.rs",
    target_compatible_with = ["@platforms//os:linux"],  # requires libssh that does not build on Mac OS
    deps = [
        "//rs/canister_client/sender",
        "//rs/ledger_suite/common/ledger_core",
        "//rs/ledger_suite/icp:icp_ledger",
        "//rs/ledger_suite/icrc1/test_utils",
        "//rs/nns/common",
        "//rs/nns/constants",
        "//rs/nns/governance/api",
        "//rs/nns/test_utils",
        "//rs/registry/subnet_type",
        "//rs/rosetta-api/common/rosetta_core:rosetta-core",
        "//rs/rosetta-api/icp:rosetta-api",
        "//rs/rosetta-api/icp/test_utils",
        "//rs/rust_canisters/canister_test",
        "//rs/rust_canisters/dfn_protobuf",
        "//rs/rust_canisters/on_wire",
        "//rs/tests/driver:ic-system-test-driver",
        "//rs/types/base_types",
        "//rs/types/types",
        "@crate_index//:candid",
        "@crate_index//:hex",
        "@crate_index//:ic-agent",
        "@crate_index//:rand",
        "@crate_index//:reqwest",
        "@crate_index//:serde",
        "@crate_index//:serde_cbor",
        "@crate_index//:serde_json",
        "@crate_index//:slog",
        "@crate_index//:tokio",
        "@crate_index//:url",
    ],
)
